package com.zxcl.feign;

import com.zxcl.domain.ShopDetail;
import com.zxcl.feign.sentinel.OrderStoreFeignSentinel;
import com.zxcl.model.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * 描述: []
 * 作者: zxcl
 */
@FeignClient(value = "store-service",fallback = OrderStoreFeignSentinel.class)
public interface OrderStoreFeign {
    /**
     * 根据店铺IDS查询店铺信息
     * @param shopIds
     * @return
     */
    @GetMapping("shop/getShopDetailsByIds")
    Result<List<ShopDetail>> getShopDetailsByIds(@RequestParam("shopIds")List<Long> shopIds);  //我需要重申的是这里的shopId应该不可能重复的
}
